
class itr:
    def __init__(self):
        self.val = 0
    def next(self):
        if self.val > 10:
            raise StopIteration
        self.val += 1
        return self.val - 1

class itr_e:
    def __iter__(self):
        return itr()

for v in itr_e():
    print v